/**
 * Project Name:UIMS
 * File Name:Portal.java
 * Package Name:com.bgi.uims.module.sys.portal.dto
 * CreateDate:2015年3月24日 上午10:44:50
 * Copyright (c) 2015, BGI_DX All Rights Reserved.
 */     

package com.bgi.uims.module.sys.portal.dto;

import java.util.HashMap;
import java.util.Map;

import com.bgi.uims.common.dto.Common;

/**
 * ClassName:Portal
 * Function: TODO 
 * Reason:	 TODO 
 * @CreateDate:2015年3月24日 上午10:44:50
 * @author   tantianhua
 * @version  
 * @since    JDK 1.7
 * @see 	 
 */

public class Portal extends Common {
	/**  
	 * serialVersionUID:TODO（用一句话描述这个变量表示什么）  
	 */   
	private static final long serialVersionUID = -26564776301944647L;
	/**
	 * 主键
	 */
	private String portalId;
	/**
	 * 面板名称
	 */
	private String portalName;
	/**
	 * 面板编码
	 */
	private String portalCode;
	/**
	 * 面板状态[禁用:0;启用：1]
	 */
	private String portalState;
	/**
	 * 面板排序
	 */
	private Integer portalIndex;
	/**
	 * 记录创建者
	 */
	private String createUser;
	/**
	 * 记录创建时间
	 */
	private String createTime;
	/**
	 * 记录最后修改者
	 */
	private String lastModifiedUser;
	/**
	 * 记录最后修改时间
	 */
	private String lastModifiedTime;
	public String getPortalId() {
		return portalId;
	}
	public void setPortalId(String portalId) {
		this.portalId = portalId;
	}
	public String getPortalName() {
		return portalName;
	}
	public void setPortalName(String portalName) {
		this.portalName = portalName;
	}
	public String getPortalCode() {
		return portalCode;
	}
	public void setPortalCode(String portalCode) {
		this.portalCode = portalCode;
	}
	public String getPortalState() {
		return portalState;
	}
	public void setPortalState(String portalState) {
		this.portalState = portalState;
	}
	public Integer getPortalIndex() {
		return portalIndex;
	}
	public void setPortalIndex(Integer portalIndex) {
		this.portalIndex = portalIndex;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getLastModifiedUser() {
		return lastModifiedUser;
	}
	public void setLastModifiedUser(String lastModifiedUser) {
		this.lastModifiedUser = lastModifiedUser;
	}
	public String getLastModifiedTime() {
		return lastModifiedTime;
	}
	public void setLastModifiedTime(String lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}
	/**
	 * 将对象的信息以map形式返回，作为存储日志信息时的比较和存储
	 */
	@SuppressWarnings("rawtypes")
	public Map annotationObject(){
		Map<String,String> results = new HashMap<String, String>();
		results.put("object","面板");//必须有,对象描述
		results.put("table","sys_portal");//必须有,表名描述
		results.put("tableId",this.portalId);//必须有,表名描述
		results.put("describe","面板名"+this.portalName);//必须有,可以指定到具体某一条，即该条的独有特性,可以描述此记录
		results.put("面板ID号", this.portalId);
		results.put("面板名", this.portalName);
		results.put("面板编码", this.portalCode);
		results.put("面板排序", this.portalIndex+"");
		String status = "";
		if(this.portalState != null && this.portalState.equals("1")){
			status = "启用";
		} else {
			status = "禁用";
		}
		results.put("面板状态", status);
		return results;
	}
}
